﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Stp.Core.Services
{
    public abstract class ServiceBase : IService
    {
        protected ActionResult _aResult = new ActionResult();

        protected void BuildActionResult(bool successful, string message)
        {
            _aResult.IsSuccessful = successful;
            _aResult.Messages = message;
        }

        public abstract ActionResult Execute();
    }
}
